package com.entfrm.biz.it.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.entfrm.core.base.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.entfrm.core.data.entity.BaseEntity;

import java.util.Date;

/**
 * @author kyc
 * @date 2020-08-11 13:45:40
 * @description 报修单对象 RepairDocument
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("it_repair")
public class Repair extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    private Integer id;

    @Excel(name = "序号")
    @TableField(exist = false)
    private Integer index;

    /**
     * 报修人姓名
     */
    @Excel(name = "报修人姓名")
    private String name;

    /**
     * 工号
     */
    @Excel(name = "工号")
    private String jobId;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    private String phone;

    /**
     * 维修员id
     */
    private Integer serviceId;

    /**
     * 维修员姓名
     */
    private String serviceName;

    /**
     * 维修员联系电话
     */
    private String servicePhone;

    /**
     * 报修地址
     */
    @Excel(name = "报修地址")
    private String location;

    /**
     * 问题描述
     */
    @Excel(name = "问题描述")
    private String problemInfo;

    /**
     * 评价
     */
    private String comment;

    /**
     * 回复
     */
    private String reply;

    /**
     * 紧急程度
     */
    @Excel(name = "紧急程度", convertExp = "ORDINARY=普通,URGENT=紧急,VERY_URGENT=非常紧急")
    private String emergency;

    /**
     * 受理时间
     */
    @Excel(name = "受理时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date assignTime;

    /**
     * 受理时长
     */
    @Excel(name = "受理时长")
    private String assignDuration;

    /**
     * 解决时间
     */
    @Excel(name = "解决时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date resolveTime;

    /**
     * 解决时长
     */
    @Excel(name = "解决时长")
    private String resolveDuration;

    /**
     * 处理状态
     */
    @Excel(name = "处理状态", convertExp = "WAIT_ASSIGN=待受理,PROCESSING=处理中,RESOLVED=已解决")
    private String status;

    /**
     * 照片附件
     */
    @Excel(name = "照片附件")
    private String photo;


}
